//
//  UILabel+Extension.swift
//  XinLangWeiBo
//
//  Created by lei on 17/2/19.
//  Copyright © 2017年 lei. All rights reserved.
//

import UIKit

extension UILabel {

    /// 遍历构造函数
    ///
    /// - parameter title:    title
    /// - parameter fontSize: fontSize, 默认 14 号字
    /// - parameter color:    color, 默认深灰色
    ///
    /// - returns: UILabel
    convenience init(title: String, fontSize:CGFloat = 14, color: UIColor = UIColor.darkGrayColor()) {
        
        self.init()
        
        text = title
        textColor = color
        font = UIFont.systemFontOfSize(fontSize)
        numberOfLines = 0
        textAlignment = NSTextAlignment.Center
        
        
        
    }
    
}



